local chenyin = fk.CreateSkill{
    name = "lingling__chenyin",
    tags = {Skill.Compulsory}
}
Fk:loadTranslationTable{
    ["lingling__chenyin"] = "沉银",
    [":lingling__chenyin"] = "锁定技，其他角色获得你的牌时，或你交给其他角色牌时，改为弃置。",
}
chenyin:addEffect(fk.BeforeCardsMove,{
    can_trigger = function (self, event, target, player, data)
        if player:hasSkill(chenyin.name) then
            for _, move in ipairs(data) do
                if move.from == player and move.to and move.to ~= player then
                    for _, info in ipairs(move.moveInfo) do
                        if info.fromArea == Card.PlayerEquip or info.fromArea == Card.PlayerHand then
                            return true
                        end
                    end
                end
            end
        end
    end,
    on_cost = Util.TrueFunc,
    on_use = function (self, event, target, player, data)
        local room = player.room
        for _, move in ipairs(data) do
            if move.from == player and move.to and move.to ~= player then
                move.to = nil
                move.toArea = Card.DiscardPile
                move.moveReason = fk.ReasonDiscard
                move.skillName = chenyin.name
                move.moveMark = nil
                move.moveVisible = true
                move.proposer = player
            end
        end
    end,
})
return chenyin